##parameters=status, noreply=False

# Force to boolean
if status: status = True
else:      status = False

context.REQUEST.SESSION.set('kedebugMode',status)

if not noreply:
    return context.prefs_debugmode()